package com.itic.market.system.marketuserproduct.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.itic.appbase.framework.common.service.CrudService;
import com.itic.market.system.marketuserproduct.persistence.dao.MarketUserProductDao;
import com.itic.market.system.marketuserproduct.persistence.model.MarketUserProduct;
import com.itic.market.system.marketuserproduct.persistence.model.MarketUserProductExample;


@Service
@Transactional
public class MarketUserProductService
     extends CrudService<MarketUserProductDao,MarketUserProduct,MarketUserProductExample> {
    @Autowired
    private MarketUserProductDao marketUserProductDao;

	public String addBatch(List<MarketUserProduct> userProducts) {
		if( userProducts.size()>0 ){
			for( MarketUserProduct tmp :userProducts ){
				marketUserProductDao.insert(tmp);
			}
		}
		return SUCCESS;
	}


}